package com.pos.dao;

import com.pos.pojo.Permission;
import com.pos.pojo.Role;

import java.util.List;
import java.util.Set;

public interface PermissionDAO {
    public Set<String> listPermissions(String userName);
    public List<Permission> list(Role role);

    public List<Permission> list();
    public void add(Permission permission);
    public void delete(int permission_id);
    public Permission get(int permission_id);
    public void update(Permission permission);
}
